home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 1995 #2 / Amiga Plus CD - 1995 - No. 2.iso / internet / faq / englisch / minix < prev    next >
Encoding:
Text File  |  1995-04-11  |  19.0 KB  |  422 lines

  1. Archive-name: minix-faq
  2. Version: $Id: minix-faq,v 1.14 1994/08/13 17:12:17 overby Exp overby $
  3.  
  4. If you have questions AND ANSWERS to contribute to this FAQ sheet,
  5. please send them to me, overby@cray.com.  I'm looking for
  6. contributions to this FAQ, not questions from people who expect me to
  7. give them answers.
  8.  
  9.                  Frequently Asked Questions on Comp.Os.MINIX
  10.  
  11. This Frequently Asked Questions (FAQ) list is intended to accompany the
  12. Minix Information Sheet.  Some of the information here is duplicated from
  13. the Information Sheet when deemed appropriate.
  14.  
  15. In creating this, I have attempted to recall the Great Questions (and their
  16. answers) as well as the Great Discussions from the net.  Many thanks to
  17. everyone who has contributed to this document.
  18.  
  19. Several things to remember when you ask questions on the net:
  20.  
  21.       Supply enough information for people to actually help you.  Things
  22.       like what Minix version, your hardware configuration, and so-on are
  23.       almost always necessary to not have to take shots in the dark.  If you
  24.       are reluctant to tell any or all of this, don't expect a good answer.
  25.  
  26.       There are some questions for which there is no answer, because nobody
  27.       has encountered the problem previously or there is no good solution to
  28.       the problem.
  29.  
  30. 1.  WHERE CAN I GET MINIX?
  31.      Minix is sold by Prentice-Hall, Inc. and  their  authorized  distribu-
  32.      tors.  They hold the Copyright on Minix, and sell it for profit (or at
  33.      least we assume they make a profit on it).
  34.  
  35.                      IT IS NOT AVAILABLE FOR ANONYMOUS FTP!
  36.  
  37.      However, demonstration versions for the IBM PC, Atari ST, and Amiga 
  38.      exist and are available via FTP from ftp.cs.vu.nl, plains.nodak.edu 
  39.      and other archive sites. It is also available from Prentice-Hall for
  40.      a small fee (see the Minix information sheet for more details & ISBN
  41.      number).  The Amiga version is available onf "Fish Disk" number 525,
  42.      available from large Amiga FTP sites {don't ask me which ones and
  43.      where -- Glen}, users groups and some retailers.  While far from a 
  44.      working system, the demo is sufficient to get a "feeling" of what 
  45.      Minix does.
  46.  
  47. 2.  WHAT VERSIONS OF MINIX EXIST?  
  48.      The most current version is 1.5.10, known simply as "1.5" if you buy it
  49.      from Prentice-Hall.  Upgrade "diffs" have been posted to the net over
  50.      the past several months; consult an archive site listed in the
  51.      Information Sheet to find that.  Prentice-Hall has been shipping ALL
  52.      versions of Minix 1.5 for several months.
  53.  
  54.      !!!!! PRENTICE HALL IS SHIPPING 1.5.10, BUT THEY CALL IT 1.5 !!!!!
  55.  
  56. 3.  BUT I'VE HEARD OF THIS A NEWER VERSION, 1.6.25.
  57.      Yes, that exists, but it is not sold by Prentice-Hall (yet). It 
  58.      is available as a set of patches against 1.5 from the several
  59.      archives. There are only PC and Atari versions yet, it has not
  60.      been ported to the Mac, Amiga, or Sparc. 
  61.  
  62.      For PCs with at least a 386 processor there is also a version
  63.      called Minix-386vm 1.6.25 (see question 11)
  64.  
  65. 4.  HOW DOES PDP 11/44 MEMORY MANAGEMENT WORK?
  66.      This was the first big off-the-topic discussion on the group, and it's
  67.      still  not  an  appropriate topic, so if you are still intrigued about
  68.      pdp-11 memory management, consult the DEC processor handbooks, or some
  69.      harmless newsgroup like alt.dev.null.
  70.  
  71. 5.  PLEASE SUBSCRIBE ME TO THE MAILING LIST
  72.      Why ask 26,000 people to do that, when there is one person who can,
  73.      and you can ask a computer to do it for you?
  74.  
  75.      If you are on bitnet or arpanet, you can get this newsgroup via a
  76.      mailing list, info-minix.  To subscribe to the list, send a message to
  77.      listserv@vm1.nodak.edu (internet) or listserv@ndsuvm1 (bitnet) saying:
  78.  
  79.                signup minix-l your_full_name
  80.  
  81.      If you have trouble, contact the listserv maintainer at
  82.      postmaster@vm1.nodak.edu
  83.  
  84. 6.  PLEASE UNSUBSCRIBE ME FROM THE MAILING LIST
  85.      Use the same procedure as for subscribing, but use  "unsubscribe"  in-
  86.      stead of "signup".
  87.  
  88. 7.  WHAT IS THE ROOT PASSWORD?
  89.      It's in the book, on pages 373 (login "ast") and 380  (login  "root").
  90.      If you didn't buy the book, that's only the start of your problems.
  91.  
  92. 8.  MINIX DOESN'T WORK WITH MY HARD DISK.
  93.      There are many potential sources of this.  Several are:
  94.  
  95.      You are running an RLL controller on an XT.  You must change
  96.      "NR_SECTORS" in the configuration  file,  <minix/config.h>  from
  97.      17 (standard for MFM controllers) to 25 (Adaptec controllers) or
  98.      26 (Western Digital and  others).
  99.  
  100. 9.  IS THERE A SCSI DRIVER FOR MINIX?
  101.      The following info applies only to PCs.
  102.  
  103.      All SCSI controllers work differently, from the primitive Seagate ST01,
  104.      to the smarter Always IN-2000, and Adaptec with it's own on-board CPU.
  105.  
  106.      Magnus Doell has released his driver for the ST-02, and James da
  107.      Silva has written one for the Adaptec 154X.  They can be found
  108.      on plains.nodak.edu in, respectively,
  109.         pub/Minix/pc/scsi07a.tar.Z
  110.         pub/Minix/usenet/1991.Jul/ahascsi1.0.shar
  111.  
  112.      The ROM wini driver should also run most SCSI controllers but you
  113.      lose protected mode capability.
  114.  
  115.      Amiga Minix has support for Commodore SCSI hard disks in the v1.5.10.1
  116.      update.
  117.  
  118.      Minix-386-vm also includes a SCSI driver.
  119.  
  120. 9A.  WHAT TAPE DRIVES WORK WITH MINIX?
  121.      Minix comes from Prentice Hall with no support for tape drives.
  122.  
  123.      For the PC, James da Silva has written a SCSI driver for Adaptec
  124.      154X type controllers (see section on SCSI support).  This driver
  125.      provides support for SCSI tape drives; there are reports of
  126.      people successfully using it with Archive Viper tape drives (NB:
  127.      not all Archive Viper drives have a SCSI interface!)
  128.  
  129. 10.  THE SINGLE THREADED FILESYSTEM IS A REAL BOTTLENCK.
  130.      True.  It's only noticeable when you  are  running  massive  background
  131.      processes, or putting multiple users on your computer.
  132.  
  133.      This "problem" has been recently "fixed" and the "solution" posted to
  134.      the net.  See your nearby bit-bucket (archive site) for it!
  135.  
  136.      You've got the source.  Fix it.
  137.  
  138. 11.  IS THERE A 386 MINIX?
  139.      Minix 1.5.10/PC runs on 80286 and 80386 systems using 80286  protected
  140.      mode  (so  all  your memory is used for programs, rather than as bank-
  141.      switched memory "windows" or a big RAM disk).  There is an  experimen-
  142.      tal   32-bit   kernel   from   Bruce  Evans.   It  is  available  from
  143.  
  144.      sirius.ucs.adelaide.edu.au: pub/minix/local
  145.      plains.nodak.edu:pub/Minix/oz
  146.  
  147.      There is also the Minix-386vm package by Philip Homburg and Kees
  148.      Bot. Some of its features are:
  149.  
  150.          * Supports paging (so you can run programs larger than memory)
  151.  
  152.          * Long (60 characters) file names.
  153.  
  154.          * TCP/IP.
  155.  
  156.          * Pseudo-Terminals
  157.  
  158.          * Asynchroneous I/O.
  159.  
  160.          * Many utilities replaced by better versions.
  161.  
  162.          * X11R5.
  163.  
  164.      For  details, get the manual pages from 
  165.  
  166.           ftp.cs.vu.nl:/pub/Minix-386vm
  167.           ftp.vmars.tuwien.ac.at:/pub/minix/Minix-386vm
  168.  
  169.      and read the usage.8 manual page.
  170.  
  171. 12.  I HAVE AN OLD VERSION OF MINIX. HOW CAN I UPGRADE?
  172.      You need to get an upgrade kit from one of the archive sites; see  the
  173.      Minix  Information  Sheet  for  a  (supposedly) complete list of sites
  174.      which archive Minix-related bits.
  175.  
  176.      Also, read the Upgrading Tutorial -- it was meant to help.
  177.  
  178. 13.  WHAT SHELLS EXIST FOR MINIX?
  179.      sh:     Your typical Bourne shell. Comes with distribution Minix
  180.      clam:   Tcsh-like shell, runs under Minix & real Unix's. Available
  181.              from ftp sites sirius, ccadfa, plains & others
  182.      ksh:    Korn shell, ported to Minix. Diffs for Minix on plains.
  183.      marvin: A kid's shell. Posted months ago in comp.os.minix.
  184.      emacs:  Does this count as a shell? Works only under 68K-Minix's
  185.              and perhaps 386-Minix.
  186.      tcsh:   The binaries for 68K-Minix and 386-Minix tcsh are available
  187.              from ftp.uni-koeln.de.  The v6.02 tcsh source distribution
  188.              contains configuration information for 386-Minix systems.
  189.  
  190. 14.  IS THERE X-WINDOWS FOR MINIX?
  191.      Not for standard Minix.  It would be difficult if not impossible
  192.      (that  was meant as a challenge!) to put X on Minix because X is
  193.      huge.  Unless you have many megabytes of memory, it would be
  194.      impossible to run X clients and  servers  on  one  machine.  It
  195.      will also certainly require 32-bit mode operation.
  196.  
  197.      Minix-386vm, however, does support X11R5 (see question 11).
  198.  
  199.      Don't be fooled by Mini-X. This is just an EGA- or VGA-graphics
  200.      driver and a windowing library for Minix-PC. The API is similar to
  201.      X11 (but not identical), so porting X programs might be easy. It
  202.      is not possible to run several programs using it at once, however.
  203.  
  204.      There is also a port of MGR, but I don't know about its current
  205.      status.
  206.  
  207. 15.  WHY CAN'T MY PC BOOT PC-MINIX FROM 1.44MB FLOPPY DISKS ?
  208.      There's a couple of reasons for this.  First, straight out of the box,
  209.      MINIX  doesn't  plan on dealing with 1.44Mb floppy disks.  The entries
  210.      in /dev should be set up specifically for your machine,  so  pick  out
  211.      the correct entries here:
  212.           mknod /dev/fd0-dsdd5in b 2  4 360               # Drive A, 360K 5.25"
  213.           mknod /dev/fd0-dshd5in b 2  8 1200              # Drive A, 1.2M 5.25"
  214.           mknod /dev/fd0-dsdd3in b 2 16 720               # Drive A, 720K 3.5"
  215.           mknod /dev/fd0-dshd3in b 2 28 1440              # Drive A, 1.44M 3.5"
  216.                      ^^^             ^^
  217.      Change 'fd0' to 'fd1' and add 1 to the minor device number  to  create
  218.      an entry for floppy drive B.  It may be a good idea to link the gener-
  219.      ic  floppy  disk  entries  (/dev/fd0  and  /dev/fd1)  to  the   proper
  220.      /dev/fd0-ds{whatever}  entries for your machine, so that programs like
  221.      dosread continue to work.
  222.  
  223.      All possible formats are:
  224.         mknod /dev/fd0  b 2  0    0       # Drive A, automatic
  225.         mknod /dev/pc0  b 2  4  360       # Drive A, 360K 5.25"
  226.         mknod /dev/at0  b 2  8 1200       # Drive A, 1.2M 5.25"
  227.         mknod /dev/qd0  b 2 12  360       # Drive A, 360K in a 720K 5.25"
  228.         mknod /dev/ps0  b 2 16  720       # Drive A, 720K 3.5" and 5.25"
  229.         mknod /dev/pat0 b 2 20  360       # Drive A, 360K in a 1.2M 5.25"
  230.         mknod /dev/qh0  b 2 24  720       # Drive A, 720K in a 1.2M 5.25"
  231.         mknod /dev/PS0  b 2 28 1440       # Drive A, 1.44M 3.5"
  232.  
  233.      Second reason your PC won't boot from 1.44Mb floppy disks, even though
  234.      you've  fixed  up  the  floppy  disk  device entries: tools/bootblok.s
  235.      doesn't know about 1.44M disks, so it blindly loads the boot image in-
  236.      correctly  and  then tries to execute it.  Get Guy Helmer's bootblok.s
  237.      from an archive site, or get shoelace.
  238.  
  239. 16.  WHAT'S WRONG WITH 'ps'?
  240.      You   need   to   have   a   copy   of   the   compiled   kernel    in
  241.      /usr/src/kernel/kernel, mm in /usr/src/mm/mm, and fs in /usr/src/fs/fs
  242.      for ps to read the namelist out of.  The PC Minix compiler must have the
  243.      "-s" flag to build the symbol table.  Note that this MUST be the SAME
  244.      kernel that is booted.
  245.  
  246. 17.  HOW IS THE FORK(2) SYSTEM  CALL  IMPLEMENTED  ON  THE  68K  PROCESSORS
  247.      WITHOUT A MEMORY MANAGEMENT UNIT?
  248.      This is done by shadowing. This is copying the memory around  as  long
  249.      as  both  child  and parent processes do exist.  Although this seems very
  250.      expensive, it is not because most processes exec(2) almost immediately
  251.      after  the fork(). But most terminal emulators who fork() en keep run-
  252.      ning loose.
  253.  
  254. 18.  WHY IS KERMIT SO ABSURDLY SLOW UNDER MINIX-68k?
  255.      See the above question.  Kermit forks so that one process  listens  to
  256.      the  serial  port  and  writes  to  the  screen, and the other process
  257.      listens to the keyboard and writes to  the  serial  port.   Since  the
  258.      second  process  never  "exec's",  the  two  processes are continually
  259.      swapped in and out of one memory slot.
  260.  
  261. 19.  IS THERE ALSO A 64K+64K LIMIT FOR MINIX 68K & MINIX 386?
  262.      For minix 68k, there isn't. For minix 386 there isn't provided you use
  263.      the proper compiler (This means no ACK)
  264.  
  265. 20.  DOES MINIX HAVE BERKELY JOB CONTROL?
  266.      No. Nor does it have its associated signals like SIGSTOP, SIGCONT etc.
  267.  
  268. 21.  DOES MINIX SUPPORT TCP/IP AND NFS
  269.      Not out of the Box. TNET4 is a TCP/IP implementation for Minix-PC.
  270.      Minix-386vm includes TCP/IP (this is also available as patches
  271.      relative to Minix 1.6.25).
  272.  
  273.      NFS does not exist.
  274.  
  275. 22.  WHY CAN'T I RECOMPILE KERMIT OR ELLE ON PC-MINIX 1.5?
  276.      You can't assemble Kermit or elle on a PC using Minix 1.5 or  earlier;
  277.      asld  reports an "out of space" error, which means it ran out of space
  278.      in the output object file.  That is why the  binaries  are  (certainly
  279.      were) on the P-H distribution.  Those binaries were compiled by a dif-
  280.      ferent, more efficient compiler.
  281.  
  282. 23.  WHY AREN'T THE MANUALS ONLINE? WHERE CAN I GET THE MANUALS?
  283.      The online manuals are available via anonymous ftp from
  284.      ftp.vmars.tuwien.ac.at (128.130.39.16) in the file 
  285.      /pub/minix/net/manpages.tar.Z.  To extract the manuals, ftp the
  286.      file binary-wise, uncompress it and extract using tar when you
  287.      are in your /usr/man directory. Each manual is in a separate
  288.      file, and to use the distribution 1.5 man(1) you will need to
  289.      read the source to man(1) to see how to create the single manual
  290.      file.
  291.  
  292.      Alternatively, the source to a more Unix-like man(1) is  available  on
  293.      ccadfa  in  the  file  pub/minix/mansrc.Z.  To  extract  the code, ftp
  294.      binary-wise, uncompress and unshar. Before compiling the code,  modify
  295.      the header file to reflect your system setup. Compile the code. If you
  296.      are using less(1) as a pager,  you  will  need  to  modify  main.c  in
  297.      nroff(1); instructions are included in mansrc.Z
  298.  
  299. 24.  WHAT IS THE DIFFERENCE BETWEEN THE 80386 AND THE 386sx?
  300.      There is no difference between 386sx/386dx except for the bus  (24-bit
  301.      addresses and 16-bit data).
  302.  
  303. 25.  DOES MINIX SUPPORT MAIL/NEWS/UUCP?
  304.      As shipped from Prentice Hall, Minix 1.5 include only local Email, and
  305.      no Uucp nor Usenet News support. Various additional packages from the
  306.      net exist:
  307.      There are two UUCP implementations, by Fred van Kempen and by Will Rose.
  308.      Fred wrote an Email interface, UMail/WMail and a news software, WNews.
  309.      A BNews implementation and the Tass newsreader from alt.sources also
  310.      exist under Minix. All these packages are available via anonymous FTP
  311.      from archive sites.
  312.  
  313. 26.  WHY IS THE DIRECTORY ON PLAINS CALLED "oz" INSTEAD OF 386
  314.  
  315.      Plains maintains several "shadows" of other sites.  To allow easy
  316.      automatic updating of packages from the remote sites, we place
  317.      everything from that site in a directory reminiscent of that site's
  318.      name.  To absorb the remote site's files into the local directory
  319.      structure would frustrate this, and it probably wouldn't happen.
  320.  
  321. 27. WHERE CAN I GET THE NEW ANSI C COMPILER?
  322.     (from Andy Tanenbaum's posting <13286@star.cs.vu.nl> 11 Mar 92)
  323.  
  324.     There are three compilers available:
  325.  
  326.       - ANSI C, conforming to ANS X3.159-1989
  327.  
  328.       - Modula-2, conforming to
  329.           "Report on The Programming Language Modula-2", in "Programming in
  330.       Modula-2, 3rd ed." by Niklaus Wirth, Springer-verlag, 1983
  331.  
  332.       - Pascal confrming to level 1 of BSI standard BS 6192: 1982 (ISO 7185), 
  333.           with a few small exceptions
  334.  
  335.     Also, a Modula-2 makefile generator and some utilities for handling
  336.     relocatable object files are included (aal, nm, size, strip, etc).
  337.     Complete libraries for ANSI C, Pascal, and Modula 2 are provided. 
  338.  
  339.     This package is available in 4 different versions:
  340.  
  341.       - 5.25" DS/DD floppies for 8088/286/386 (4 360K floppies);
  342.       - 5.25" DS/HD floppies for 8088/286/386 (1 1.2M floppy);
  343.       - 3.5"  DS/DD floppies for 8088/286/386 (2 720K floppies);
  344.       - 3.5"  DS/DD floppies for Commodore Amiga or Atari ST (2 720K floppies).
  345.     
  346.     Many problems with the old Minix C compiler have been resolved:
  347.       - All versions have separate as and ld programs.  Asld is gone.
  348.       - Floating point is now supported
  349.       - Library is greatly improved and is ANSI conformant
  350.       - A program aal is provided to manage libraries (ranlib-like)
  351.     
  352.     The package is available from two companies:
  353.     
  354.     Transmediair Products & Support B.V.    Unipress Software
  355.     Box 297                    2025 Lincoln Highway
  356.     3720 AG  Bilthoven                Edison, NJ 08817
  357.     The Netherlands                U.S.A.
  358.     Tel: +31 30 281820                Tel: +1 908 287 2100
  359.     FAX: +31 30 292294                FAX: +1 908 287 4929
  360.                             Email: msk@unipress.com
  361.     
  362.     Transmediair charges US $200,- for the 4 floppy PC version, US $150,-
  363.     for the other versions. Unipress charges US $199,- for all versions.
  364.  
  365. 28. BUT THERE *IS* AN AMIGA DEMO DISK!
  366.  
  367.     It can be found on Fish disk 525. Fish disks are available at ftp 
  368.     sites carrying Amiga stuff.  They should also be available from various 
  369.     Amiga groups and retailers.
  370.  
  371. 29. IS THERE A WAY TO BOOT FROM A MINIX FILE SYSTEM (ON FLOPPY OR HARD
  372.     DISK?
  373.  
  374.     There are at least three utilities to do this. They all put the image
  375.     to be booted from into a normal file on a Minix file system and change
  376.     the boot block, so that it can read a file from a Minix FS and start
  377.     it.
  378.     
  379.     Shoelace is the oldest of these utilities. It includes a lot of bells
  380.     and whistles (you can check a file system, load the components of
  381.     Minix seperately, start a debugger before Minix, so you can debug
  382.     Minix at start up, ...), but is a little slow and a little difficult
  383.     to set up. I have been using it for a long time now and am quite happy
  384.     with it.
  385.     
  386.     MXboot. Sorry, don't know anything about it, except that it exists.
  387.     
  388.     Boot Monitor: This is currently the official boot tool (i.e., it is
  389.     included in 1.6.25). Faster and simpler than shoelace, and depends less
  390.     on hardware. Lets you build nice menues to boot from several kernels,
  391.     set boot options, boot from other partitions, etc. It also understands
  392.     the new file system types.
  393.  
  394. 30. I HAVE A 16MB PC, BUT MINIX RUNS OUT OF MEMORY WHILE BOOTING. WHY?
  395.  
  396.     Minix counts memory in 256 byte units and uses a 16-bit variable to do
  397.     this. So if you have 16MB of RAM, an overflow will occur and Minix will
  398.     think you have no memory at all and refuse to work. Use the universal
  399.     boot disk to boot, then look for the line 
  400.  
  401.         ext_memsize = get_ext_memsize();
  402.  
  403.     in /usr/src/kernel/cstart.c and insert something like
  404.  
  405.         if (ext_memsize >= 15360) ext_memsize = 15359;
  406.  
  407.     after it and build a new system. Alternately you can upgrade to Minix
  408.     1.6.25 or Minix-386vm, which don't have this problem.
  409.  
  410. 31. WHAT ARE THE MINIMUM HARDWARE REQUIREMENTS FOR MINIX?
  411.  
  412.     Theoretically you can run it on an XT with 512kB RAM and 2 floppies.
  413.     Unless you are particularly fond of juggling disks, you would want at
  414.     least 20MB on a hard disk, though.
  415.  
  416.     A 286 will give you memory protection and the ability to use more the
  417.     640k of memory. 2MB are recommended.
  418.  
  419.     If you have a 386 and decide to use one of the 32-bit kernels, you
  420.     should have at least 4MB RAM. For Minix-386vm 60MB of hard disk are
  421.     probably the minimum, if you want to keep the sources online.
  422.